Skip to content

Simplify output of docs pages for navigation - #116

Merged
Shiroizu merged 5 commits into
VocaDB:mainfrom
Hans5958:layout/simplify-out
Nov 6, 2026
Merged

Shiroizu merged 5 commits into
VocaDB:mainfrom
Hans5958:layout/simplify-out

Conversation

@Hans5958

@Hans5958 Hans5958 commented Feb 8, 2026 •

Copy link
Copy Markdown
Contributor

The pages variable used in navigation (was the getDocsPaths() function, now just merged into one file after refactor) has unused data (such as the page body/content) that is included in all pages with navigation.

Simplifying the variable to only included used properties would result in smaller page size. As a proof, the build size went from 639 MB to 84.0 MB (86.9% decrease).

Before After

Also, I did some refactoring, mainly to convert blog terms into documentation terms.

This PR has no changes to the functionality and the content of the documentation.

@Hans5958
Hans5958 force-pushed the layout/simplify-out branch 3 times, most recently from b0caac0 to 1ee3fe2 Compare February 9, 2026 06:44
@Shiroizu

Shiroizu commented Nov 4, 2026

Copy link
Copy Markdown
Member

Merge conflicts, could you refresh the branch?

The output of this function has unused data (such as the page body/content) that is included in all pages. Simplifying the output to only included used properties would result in smaller page size.
A little bit of renaming from blog terms into docs terms. Also merge function that is used only once.
@Hans5958
Hans5958 force-pushed the layout/simplify-out branch from 420643d to e8e6685 Compare November 5, 2026 15:05
@Hans5958
Hans5958 force-pushed the layout/simplify-out branch from eae0b7e to 97088ee Compare November 5, 2026 15:09
@Shiroizu
Shiroizu merged commit a69fe3d into VocaDB:main Nov 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants